﻿#region - Class details -
/*  
 *  Developer   :Tony Hicks
 *  Description : 
 *  History     :
 */
#endregion

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace QuickApp
{
    public static class General
    {

        #region - Private methods -
        #endregion

        #region - Public methods -
        public static void ChangeAppSetting(string appSettingName, string value)
        {
            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            config.AppSettings.Settings[appSettingName].Value = value;
            config.Save(ConfigurationSaveMode.Modified);
            ConfigurationManager.RefreshSection("appSettings");
        }
        #endregion
    }
}
